package com.ys.entity.report;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_BatchImportLog", catalog="Id")
public class TsBatchImportLog extends BaseEntity<TsBatchImportLog> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="ImportInfo", nameJava="importInfo", typeDataBase="text")
	private String importInfo;
	@YsField(nameDataBase="InfoType", nameJava="infoType", typeDataBase="tinyint")
	private Integer infoType;
	@YsField(nameDataBase="ImportState", nameJava="importState", typeDataBase="tinyint")
	private Integer importState;
	@YsField(nameDataBase="FailReason", nameJava="failReason", typeDataBase="text")
	private String failReason;
	@YsField(nameDataBase="LevIdOne", nameJava="levIdOne", typeDataBase="bigint")
	private Long levIdOne;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TsBatchImportLog setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TsBatchImportLog setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public TsBatchImportLog setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getImportInfo() {
		return importInfo;
	}
	public TsBatchImportLog setImportInfo(String importInfo) {
		this.importInfo = importInfo;
		return this;
	}
	public Integer getInfoType() {
		return infoType;
	}
	public TsBatchImportLog setInfoType(Integer infoType) {
		this.infoType = infoType;
		return this;
	}
	public Integer getImportState() {
		return importState;
	}
	public TsBatchImportLog setImportState(Integer importState) {
		this.importState = importState;
		return this;
	}
	public String getFailReason() {
		return failReason;
	}
	public TsBatchImportLog setFailReason(String failReason) {
		this.failReason = failReason;
		return this;
	}
	public Long getLevIdOne() {
		return levIdOne;
	}
	public TsBatchImportLog setLevIdOne(Long levIdOne) {
		this.levIdOne = levIdOne;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TsBatchImportLog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsBatchImportLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TsBatchImportLog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TsBatchImportLog tsBatchImportLog(
		Long pid,
		String userId,
		String importInfo,
		Integer infoType,
		Integer importState,
		String failReason,
		Long levIdOne,
		Integer status
			) {
		TsBatchImportLog entity = new TsBatchImportLog();
		entity.setPid(pid);
		entity.setUserId(userId);
		entity.setImportInfo(importInfo);
		entity.setInfoType(infoType);
		entity.setImportState(importState);
		entity.setFailReason(failReason);
		entity.setLevIdOne(levIdOne);
		entity.setStatus(status);
		return entity;
	}
}